<?php
class SuserModel extends Model {
	// 自动验证设置
	protected $_validate	 =	 array(
		array('suser_id','require','生成账号失败！'),
		array('suser_password','require','密码必须！'),
		array('suser_password','suser_passwordconform','确认密码和密码不同！',0,'confirm'),
		array('suser_realname','require','真实姓名必须！'),
		array('suser_idnumber','require','身份证号必须！'),
		array('suser_email','','电子邮箱格式不正确！',0,'email',3),
		array('suser_qq','require','QQ号码必须！'),
		array('suser_tel','require','联系电话必须'),
		array('suser_id','','号码已经存在',0,'unique',self::MODEL_INSERT),
		);
	// 自动填充设置
	protected $_auto	 =	 array(
		array('suser_pointcard','0',self::MODEL_INSERT),
		array('suser_totlepointcard','0',self::MODEL_INSERT),
		);

}
?>